package com.ityuwen.mengyagushi.account.client;

import com.ityuwen.mengyagushi.common.result.Result;
import com.ityuwen.mengyagushi.vo.account.AccountLockResultVo;
import com.ityuwen.mengyagushi.vo.account.AccountLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(value = "service-account")
public interface UserAccountFeignClient {

    @PostMapping("api/account/userAccount/{userId}")
    Result saveUserAccount(@PathVariable("userId")Long userId);

    @PostMapping("api/account/userAccount/check/lock")
    Result<AccountLockResultVo> checkLock(@RequestBody AccountLockVo accountLockVo);

    @PostMapping("api/account/userAccount/minus/{orderNo}")
    Result minus(@PathVariable("orderNo")String orderNo);
}